#define INH_A  2
#define IN_A   3
#define INH_B  4
#define IN_B   5
#define INH_C  6
#define IN_C   7


const int INH[] = {INH_A, INH_B, INH_C};
const int IN[]  = {IN_A, IN_B, IN_C};

void setup() {
  pinMode(9, OUTPUT);
  for (int i=0; i<3; i++) {
    pinMode(INH[i], OUTPUT); digitalWrite(INH[i], LOW);
    pinMode(IN[i], OUTPUT);
  }
}


void loop() {
    digitalWrite(9, HIGH);
  for (int i=0; i<5; i++) {
      for (int i=0; i<3; i++) {
        digitalWrite(IN[i], HIGH);
      }
      delay(1000);
    
      for (int i=0; i<3; i++) {
        digitalWrite(IN[i], LOW);
      }
      delay(1000);
  }


    digitalWrite(9, LOW);
  for (int i=0; i<5; i++) {
      for (int i=0; i<3; i++) {
        digitalWrite(IN[i], HIGH);
      }
      delay(1000);
    
      for (int i=0; i<3; i++) {
        digitalWrite(IN[i], LOW);
      }
      delay(1000);
  }
}
